home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / Telephone Manager 1.1.1 / Install / Development / TelephoneTools.p < prev    next >
Encoding:
Text File  |  1993-07-20  |  5.3 KB  |  274 lines  |  [TEXT/MPS ]

  1.  
  2. {
  3.  TelephoneTools.p
  4.  Pascal Interface to the Telephone Manager
  5.  
  6.   Copyright Apple Computer, Inc. 1990-1993
  7.   All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT TelephoneTools;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingTelephoneTools}
  21. {$SETC UsingTelephoneTools := 1}
  22.  
  23. {$I+}
  24. {$SETC TelephoneToolsIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26.  
  27. {$IFC UNDEFINED UsingTypes}
  28. {$I $$Shell(PInterfaces)Types.p}
  29. {$ENDC}
  30.  
  31. {$IFC UNDEFINED UsingDialogs}
  32. {$I $$Shell(PInterfaces)Dialogs.p}
  33. {$ENDC}
  34.  
  35. {$SETC UsingIncludes := TelephoneToolsIncludes}
  36.  
  37.  
  38. CONST
  39.     vdefType    = 'vdef';        { main telephone definition procedure }
  40.     vvalType    = 'vval';        { validation definition procedure }
  41.     vsetType    = 'vset';        { telephone setup definition procedure }
  42.     vlocType    = 'vloc';        { telephone configuration localization defProc }
  43.     vscrType    = 'vscr';        { telephone scripting defProc interfaces }
  44.  
  45.     vbndType    = 'vbnd';        { bundle type for telephone    }
  46.  
  47.     telValidateMsg            = 0;
  48.     telDefaultMsg            = 1;
  49.     
  50.     telMgetMsg                = 0;
  51.     telMsetMsg                = 1;
  52.     
  53.     telSpreflightMsg        = 0;
  54.     telSsetupMsg            = 1;
  55.     telSitemMsg                = 2;
  56.     telSfilterMsg            = 3;
  57.     telScleanupMsg            = 4;
  58.     
  59.     telL2EnglishMsg            = 0;
  60.     telL2IntlMsg            = 1;
  61.     
  62.     
  63.     telNewMsg                = 0;
  64.     telDisposeMsg            = 1;
  65.     telSuspendMsg            = 2;
  66.     telResumeMsg            = 3;
  67.     telMenuMsg                = 4;
  68.     telEventMsg                = 5;
  69.     telActivateMsg            = 6;
  70.     telDeactivateMsg        = 7;
  71.     
  72.     telIdleMsg                = 50;
  73.     telOpenTermMsg            = 51;    
  74.     telResetTermMsg            = 52;        
  75.     telCloseTermMsg            = 53;    
  76.     telTermMsgHandMsg        = 54;
  77.     telClrTermMsgHandMsg    = 55;
  78.     telTermEventsSuppMsg    = 56;
  79.     telGetInfoMsg            = 57;        
  80.     
  81.     
  82.     telCountDNsMsg             = 60;        
  83.     telDNLookupByIndexMsg     = 61;    
  84.     telDNLookupByNameMsg    = 62;
  85.     telCallbackCleaMsgr     = 63;
  86.     telOtherFeatListMsg        = 64;
  87.     telOtherFeatImplMsg        = 65;
  88.     telToolFunctionsMsg        = 66;
  89.     telOtherFunctionMsg        = 67;
  90.     
  91.     telGetHookswMsg            = 70;
  92.     telSetHookswMsg            = 71;
  93.     telGetVolumeMsg            = 72;
  94.     telSetVolumeMsg            = 73;
  95.     telAlertMsg                = 74;
  96.     telGetDisplayMsg        = 75;
  97.     telSetDisplayMsg        = 76;
  98.     
  99.     telDNSelectMsg            = 100;
  100.     telDNDisposeMsg            = 101;
  101.     telGetDNInfoMsg         = 102;
  102.     telGetDNFlagsMsg        = 103;
  103.     telDNMsgHandMsg         = 104;
  104.     telClrDNMsgHandMsg        = 105;
  105.     telDNEventsSuppMsg        = 106;
  106.     
  107.     telCountCAsMsg             = 110;
  108.     telCALookupMsg             = 111;
  109.     telCAMsgHandMsg         = 112;
  110.     telClrCAMsgHandMsg        = 113;
  111.     telCAEventsSuppMsg        = 114;
  112.     telSetupCallMsg         = 115;
  113.     
  114.     telForwardSetMsg         = 120;
  115.     telForwardClearMsg         = 121;
  116.     telDNDSetMsg             = 122;
  117.     telDNDClearMsg             = 123;
  118.     
  119.     telCADisposeMsg            = 200;
  120.     telGetCAStateMsg        = 201;
  121.     telGetCAFlagsMsg        = 202;
  122.     telGetCAInfoMsg         = 203;
  123.     telConnectMsg             = 204;
  124.     telDialDigitsMsg         = 205;
  125.     telAcceptCallMsg         = 206;
  126.     telRejectCallMsg         = 207;
  127.     telDeflectCallMsg         = 208;
  128.     telAnswerCallMsg        = 209;
  129.     telDropMsg                = 210;
  130.     telHoldMsg                 = 211;
  131.     telRetrieveMsg             = 212;
  132.     telConfSplitMsg            = 213;
  133.     telTransfBlindMsg        = 214;
  134.     telCallbackSetMsg         = 215;
  135.     telCallbackNowMsg        = 216;
  136.     telCallPickupMsg         = 217;
  137.     telParkCallMsg             = 218;
  138.     telRetrieveParkedCallMsg = 219;
  139.     telVoiceMailAccessMsg    = 220;
  140.     telPagingMsg            = 221;
  141.     telIntercomMsg            = 222;
  142.     
  143.     telConfPrepMsg             = 230;
  144.     telConfEstMsg             = 231;
  145.     telTransfPrepMsg         = 232;
  146.     telTransfEstMsg         = 233;
  147.     
  148.     
  149.  
  150. TYPE
  151.  
  152. TELSetupPtr         = ^TELSetupStruct;
  153. TELSetupStruct     = RECORD
  154.     theDialog     :     DialogPtr;
  155.     count        :    INTEGER;
  156.     theConfig    :    Ptr;
  157.     procID        :    INTEGER;        { procID of the tool    }
  158. END;
  159.  
  160. TELForwardPB        = RECORD
  161.     forwardDN            : StringPtr;
  162.     forwardPartyName    : StringPtr;
  163.     forwardSubaddress    : StringPtr;
  164.     forwardType            : INTEGER;
  165.     numRings            : INTEGER;
  166. END;
  167.  
  168.  
  169. TELTermMsgPB        = RECORD
  170.     toolID            : INTEGER;
  171.     tRef            : INTEGER;
  172.     msg                : LONGINT;
  173.     mtype            : INTEGER;
  174.     value            : INTEGER;
  175. END;
  176.  
  177. TELDNMsgPB        = RECORD
  178.     toolID            : INTEGER;
  179.     tRef            : INTEGER;
  180.     dnRef            : INTEGER;
  181.     msg                : LONGINT;
  182.     mtype            : INTEGER;
  183.     value            : INTEGER;
  184.     rmtDN            : StringPtr;
  185.     rmtName            : StringPtr;
  186.     rmtSubaddress    : StringPtr;
  187. END;
  188.  
  189.  
  190. TELCAGenericMsgPB    = RECORD
  191.     toolID            : INTEGER;
  192.     tRef            : INTEGER;
  193.     dnRef            : INTEGER;
  194.     caRef            : INTEGER;
  195.     msg                : LONGINT;
  196.     mtype            : INTEGER;
  197.     value            : INTEGER;
  198.     rmtDN            : StringPtr;
  199.     rmtName            : StringPtr;
  200.     rmtSubaddress    : StringPtr;
  201.     dialType        : INTEGER;
  202. END;
  203.  
  204. TELCADisconMsgPB     = RECORD
  205.     toolID            : INTEGER;
  206.     tRef            : INTEGER;
  207.     dnRef            : INTEGER;
  208.     caRef            : INTEGER;
  209.     msg                : LONGINT;
  210.     mtype            : INTEGER;
  211.     value            : INTEGER;
  212. END;
  213.     
  214. TELCAConfMsgPB        = RECORD
  215.     toolID            : INTEGER;
  216.     tRef            : INTEGER;
  217.     dnRef            : INTEGER;
  218.     caRef            : INTEGER;
  219.     msg                : LONGINT;
  220.     mtype            : INTEGER;
  221.     value            : INTEGER;
  222. END;
  223.  
  224. TELCATransfMsgPB    = RECORD
  225.     toolID            : INTEGER;
  226.     tRef            : INTEGER;
  227.     dnRef            : INTEGER;
  228.     caRef            : INTEGER;
  229.     msg                : LONGINT;
  230.     mtype            : INTEGER;
  231.     value            : INTEGER;
  232.     rmtDN            : StringPtr;
  233.     rmtName            : StringPtr;
  234.     rmtSubaddress    : StringPtr;
  235.     dialType        : INTEGER;
  236. END;
  237.  
  238. TELCAInOutMsgPB    = RECORD
  239.     toolID            : INTEGER;
  240.     tRef            : INTEGER;
  241.     dnRef            : INTEGER;
  242.     caRef            : INTEGER;
  243.     msg                : LONGINT;
  244.     mtype            : INTEGER;
  245.     value            : INTEGER;
  246.     rmtDN            : StringPtr;
  247.     rmtName            : StringPtr;
  248.     rmtSubaddress    : StringPtr;
  249.     caState            : INTEGER;
  250.     intExt            : INTEGER;
  251.     callType        : INTEGER;
  252.     dialType        : INTEGER;
  253.     bearerType        : INTEGER;
  254.     rate            : INTEGER;
  255.     routeDN            : StringPtr;
  256.     routeName        : StringPtr;
  257.     routeSubaddress : StringPtr;
  258.     featureFlags    : LONGINT;
  259.     OtherFeatures    : LONGINT;
  260.     telCAPrivate    : LONGINT;
  261. END;
  262.  
  263.  
  264.  
  265. {$ENDC} {UsingTelephoneTools}
  266.  
  267. {$IFC NOT UsingIncludes}
  268.     END.
  269. {$ENDC}
  270.  
  271.  
  272.  
  273.     
  274.